/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Model.Agenda;
import Model.Chambre;
import Model.Client;
import Model.Paiement;
import Model.Sejour;

/**
 *
 * @author Hugo
 */
public class PaiementController extends AbstractController{
    
    public static final String LISTE_CHAMBRE_PROPERTY = "ListeChambre";
    
    public static final String PAIEMENT_PROPERTY = "Paiement";
    
    public static final String TOTAL_PROPERTY = "Total";


    public void updateTotal() {
        updateProperty(TOTAL_PROPERTY);                                 
    }
    
    
    public void addChambre(int numChambre){
        Paiement paiement = Agenda.getInstance().TerminerChambre(numChambre);
        if(paiement != null)
        {
            this.addModel(paiement);
            updateProperty(LISTE_CHAMBRE_PROPERTY);
        }
    }
}
